import request from '@/utils/request'

// 查询教师亲属关系列表
export function listTeacher_relatives(query) {
  return request({
    url: '/archives/teacher_relatives/list',
    method: 'get',
    params: query
  })
}

// 查询教师亲属关系详细
export function getTeacher_relatives(id) {
  return request({
    url: '/archives/teacher_relatives/' + id,
    method: 'get'
  })
}

// 新增教师亲属关系
export function addTeacher_relatives(data) {
  return request({
    url: '/archives/teacher_relatives',
    method: 'post',
    data: data
  })
}

// 修改教师亲属关系
export function updateTeacher_relatives(data) {
  return request({
    url: '/archives/teacher_relatives',
    method: 'put',
    data: data
  })
}

// 删除教师亲属关系
export function delTeacher_relatives(id) {
  return request({
    url: '/archives/teacher_relatives/' + id,
    method: 'delete'
  })
}
